package cn.kinoko.model.user.req;

import cn.kinoko.common.constant.RegexpConstant;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Pattern;
import jakarta.validation.constraints.Size;
import lombok.Data;

/**
 * @author kinoko
 */
@Data
public class UserInfoUpdateReq {

    /**
     * 用户名称
     */
    @NotBlank(message = "请输入用户名称")
    @Size(max = 255, message = "最多支持 255 个字符")
    private String userName;
    /**
     * 手机号
     */
    @Pattern(regexp = "^$|" + RegexpConstant.PHONE, message = "手机格式错误")
    private String phone;
    /**
     * 邮箱
     */
    @Pattern(regexp = "^$|" + RegexpConstant.EMAIL, message = "邮箱格式错误")
    private String email;

}
